package org.jeecg.modules.teacher.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.base.entity.SysUserTit;
import org.jeecg.common.system.vo.SysUserCacheInfo;
import org.jeecg.modules.teacher.entity.AstuTeacher;
import org.springframework.stereotype.Service;

/**
 * @Description: 教师信息表
 * @Author: jeecg-boot
 * @Date:   2020-11-05
 * @Version: V1.0
 */
public interface IAstuTeacherService extends IService<AstuTeacher> {
    /**
     * 修改教师信息
     * @param teacher
     * @return
     */
    public int  updateTeacherInfo(@Param("teacher") AstuTeacher teacher);
    /**
     * 修改用户信息
     * @param user
     * @return
     */
    public int  updateUserInfo(@Param("user") SysUserTit user);
    /**
     * 通过id 查询用户
     * @param userid
     * @return
     */
    public SysUserTit  selectUer(@Param("userid") String userid);
    /**
     * 通过id  删除用户
     * @param userid
     * @return
     */
    public int  deleteUserById(@Param("userid") String userid);
    /**
     * 通过教师工号得到教师信息
     * @param teacherNumber
     * @return
     */
    AstuTeacher selectInfoByTeacherNum(@Param("teacherNumber") String teacherNumber);
}
